<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>

<script type="text/javascript">

var a = 10;
var a = function(){
	alert(1);
};
alert(a);

/*
function a(){
	alert(1);
}
*/
//匿名函数
(function () {
    alert(1);
})();
</script>
</body>

</html>